package com.rdzn.mall.portal.service;

import com.rdzn.mall.center.entity.UmsMember;
import com.rdzn.mall.portal.domain.MemberDetails;
import com.rdzn.mall.portal.domain.UmsUserInfo;
import org.jeecg.common.system.vo.LoginUser;

public interface IUserService {

    MemberDetails getUserDetails();

    MemberDetails getUserById(Integer memberId);

    MemberDetails getUserDetails(String wxOpenId);

    UmsMember getMemberByWxOpenId(String wxOpenId);
    /**
     * 获取当前登录会员
     */
    UmsMember getCurrentMember();

    /**
     * 用户注册
     * @param umsMember              用户信息
     * @param invitationCode    邀请码
     * @return
     */
    MemberDetails loginOrRegisterUser(UmsMember umsMember, String invitationCode);

    /**
     * 根据用户账号查询用户信息
     * @param username
     * @return
     */
    public LoginUser getUserByName(String username);

    /**
     * 根据会员id修改会员积分
     */
    void updateIntegration(Integer id,Integer integration);

    UmsUserInfo getUmsUserInfo(Integer id);

}
